package in.srain.cube.views.ptr.demo.base;

import android.os.Bundle;


import in.srain.cube.mints.base.MintsBaseActivity;
import in.srain.cube.mints.base.TitleBaseActivity;
import in.srain.cube.mints.base.TitleHeaderBar;
import in.srain.cube.views.ptr.demo.R;
import in.srain.cube.views.ptr.demo.datamodel.DemoUploadModel;
import in.srain.cube.views.ptr.demo.ui.fragment.CubeDemoHomeFragment;

public class DemoHomeActivity extends TitleBaseActivity {
    public  static  DemoHomeActivity instance;

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.activity_main);
        pushFragmentToBackStack(CubeDemoHomeFragment.class, null);
        DemoUploadModel.testUpload();
        setHeaderTitle("cube app");
        instance=this;

    }

    public TitleHeaderBar getHeadBar(){

        return  getTitleHeaderBar();
    }

    @Override
    protected void onResume() {
        super.onResume();

    }

    protected String getCloseWarning() {
        return "Tap back to exit";
    }

    @Override
    protected int getFragmentContainerId() {
        return R.id.id_fragment;
    }
}